Skip to content

Fix numeric array save options being dropped in :memory and stream writes#214

Merged
kipcole9 merged 1 commit into
elixir-image:mainfrom
hlindset:fix/numeric-array-save-options
Jul 21, 2026
Merged

Fix numeric array save options being dropped in :memory and stream writes#214
kipcole9 merged 1 commit into
elixir-image:mainfrom
hlindset:fix/numeric-array-save-options

Conversation

@hlindset

@hlindset hlindset commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Numeric array save options (e.g. background: [0, 128, 0]) were silently dropped on :memory and stream writes: the filename suffix string joined arrays with : (.jpg[background=0:128:0]), which libvips ignores. Arrays are now space separated (.jpg[background=0 128 0]). Flag lists like :keep still use :. File-path writes were unaffected (they pass keyword params, not a suffix string). Looks like the option never worked: before the : join it was interpolated as charlist bytes.

Adds regression tests for :memory and stream writes with a :background.

@kipcole9
kipcole9 merged commit dc98142 into elixir-image:main Jul 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants